package com.heze.xunhuan.vo;

import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 用户视图对象
 *
 * @author heze-xunhuan
 */
@Data
public class UserVO implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;
    private String nickname;
    private String avatar;
    private String phone;
    private Integer gender;
    private LocationInfo locationInfo;
    private Integer vipLevel;
    private Integer dailyPostCount;
    private LocalDate lastPostDate;
    private LocalDateTime createdAt;

    @Data
    public static class LocationInfo implements Serializable {
        private String province;
        private String city;
        private String district;
        private String address;
        private Double lat;
        private Double lng;
    }
}

